package com.qf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("user")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserPojo {
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @TableField(value = "user_name")
    private String userName;

    @TableField(value = "user_pass")
    private String userPass;

    @TableField(value = "user_age")
    private Integer userAge;

    @TableField(value = "user_sex")
    private String userSex;

    @TableField(value = "user_tel")
    private String userTel;

    @TableField(value = "user_card")
    private String userCard;

    @TableField(value = "user_years")
    private Integer userYears;

    @TableField(value = "user_job")
    private String userJob;
    @TableField(exist = false)
    private Integer roleId;

    @TableField(exist = false)
    private String token;
}
